﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>来加健康服务网</title>
<meta name="Keywords" content="来加健康服务网">
<meta name="Description" content="来加健康服务网">
<meta name="applicable-device"content="mobile">
<!--<meta name="location" content="province=河北;city=石家庄">-->
<!-- 移动设备支持 -->
    <script src="../Scripts/jquery-1.8.3.min.js"></script>
    <script>
        //$(function () {
        //    $.ajax({
        //        type: "get",
        //        url: "/tibao/show",
        //        success: function (d) {
        //            $(d).each(function (i, obj) {
        //                var tr = "<div class=\"tj_cont\"><a class=\" tj_cont_h\" href=\"my_orderinfo.html?" + obj.Id + "\">订单号：" + obj.tbid + "<i class=\"rt xq\" href=\"javascript:;\">详情</i></a><div class=\"order_1tc\"><a href=\"javascript:;\"><h3>" + obj.tbname + "</h3><div class=\"pic\"><img style=\"display: inline;\" alt=\"" + obj.tbcontent + "\" src=\"http://www.viptijian.com/Uploads/images/units/201210/20121023155255728_M.JPG\"></div><div class=\"info\"><div class=\"i-note\"><div class=\"price\">¥" + + " <em>医院价：<s>¥***</s></em></div><p>体检日期：" + + "</p><p>支付方式：在线支付</p></div></div></a></div><div class=\"clear\"></div><div class=\"ord_zt\"><a class=\"xj\" href=\"javascript:;\">小计：￥" + + "</a><a class=\"fk\" href=\"#\">付款</a></div></div>"
        //              //var tr="<div class=\'tj_cont\'><a class=\' tj_cont_h\' href=\'my_orderinfo.html?" + obj.Id + "\'>订单号：" +obj.tbid + "<i class=\'rt xq\' href=\'javascript:;\'>详情</i></a><div class=\'order_1tc\'><a href=\'javascript:;\'><h3>" + obj.tbname + "</h3><div class=\'pic\'><img style=\'display: inline;\' alt=\'" + obj.tbcontent + "\' src=\'Public/home/Uploads/images/pic.jpg\'></div><div class=\'info\'><div class=\'i-note\'><div class=\'price\'>¥" +  + " <em>医院价：<s>¥***</s></em></div><p>体检日期：" +  + "</p><p>支付方式：在线支付</p></div></div></a></div><div class=\'clear\'></div><div class=\'ord_zt\'><a class=\'xj\' href=\'javascript:;\'>小计：￥" +  + "</a><a class=\'fk\' href=\'#\'>付款</a></div></div>";
        //               // var tr = "<tr><td>" + obj.tbname + "</td><td>" + obj.tbcontent + "</td><td>" + obj.tbstate + "</td><td>" + obj.id + "</td></tr>"
        //                $("#tibao").append(tr);
        //            })
        //        }
        //    })
        //})
    </script>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">

<!--<meta name="apple-mobile-web-app-capable" content="yes"> -->
<!--<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">-->
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <!--<meta name="x5-fullscreen" content="true">-->

<link href="Public/mobile/css/common.css?64" rel="stylesheet" type="text/css">
<link href="Public/mobile/css/new.css?65" rel="stylesheet" type="text/css">
<link href="Public/mobile/js/layer/need/layer.css" rel="stylesheet" type="text/css">
<link href="Public/mobile/js/layerModel/layerModel.css" rel="stylesheet" type="text/css">
    <script src="../Scripts/jquery-1.10.2.min.js"></script>
    <script>
        $(document).ready(function () {
            //清空选项卡内容
            $("#state_0").empty();
            $("#state_2").empty();
            $("#state_3").empty();
            
             $.ajax({
                 url: '/Api/my_order',
                 type: 'post',
                 DataType: 'json',
                 success: function (data) {
                     
                     if (data.Data != "")
                     {
                        
                         if (data.Code == 0) {
                             return;
                         }
                         else {
                             
                             $(data.Data).each(function (i, obj) {
                                 
                                 if (obj.State == 0) {
                                     
                                     
                                     var state_0_data = "<div class=\"tj_cont\"><a class=\" tj_cont_h\" href=\"my_orderinfo.html?" + obj.Id + "\">订单号：" + obj.Ordercode + "<i class=\"rt xq\" href=\"javascript:;\">详情</i></a><div class=\"order_1tc\"><a href=\"javascript:;\"><h3>" + obj.BookerName + "</h3><div class=\"pic\"><img style=\"display: inline;\" alt=\"" + obj.BookerPhone + "\" src=\"Public/home/images/pic.jpg\"></div><div class=\"info\"><div class=\"i-note\"><div class=\"price\">¥" + obj.PreferentialPrice + " <em>医院价：<s>¥" + obj.SumPrice + "</s></em></div><p>体检日期：" + obj.CreateDate + "</p><p>支付方式：在线支付</p></div></div></a></div><div class=\"clear\"></div><div class=\"ord_zt\"><a class=\"xj\" href=\"javascript:;\">小计：￥" + obj.SumPrice + "</a><a class=\"fk\" href=\"/WeChatPay/PrePay?oid="+obj.Id+"\">付款</a></div></div>";
                                     
                                     $("#state_0").append(state_0_data);
                                 }
                                 else if (obj.State == 1) {
                                     
                                     var state_2_data = "<div class=\"tj_cont\"><a class=\" tj_cont_h\" href=\"my_orderinfo.html?" + obj.Id + "\">订单号：" + obj.Ordercode + "<i class=\"rt xq\" href=\"javascript:;\">详情</i></a><div class=\"order_1tc\"><a href=\"javascript:;\"><h3>" + obj.BookerName + "</h3><div class=\"pic\"><img style=\"display: inline;\" alt=\"" + obj.BookerPhone + "\" src=\"Public/home/images/pic.jpg\"></div><div class=\"info\"><div class=\"i-note\"><div class=\"price\">¥" + obj.PreferentialPrice + " <em>医院价：<s>¥" + obj.SumPrice + "</s></em></div><p>体检日期：" + obj.CreateDate + "</p><p>支付方式：在线支付</p></div></div></a></div><div class=\"clear\"></div><div class=\"ord_zt\"><a class=\"xj\" href=\"javascript:;\">小计：￥" + obj.SumPrice + "</a><a class=\"fk\" href=\"\">退款</a></div></div>";
                                     $("#state_2").append(state_2_data);
                                 }
                                 else if (obj.State == 3) {
                                     
                                     var state_3_data = "<div class=\"tj_cont\"><a class=\" tj_cont_h\" href=\"my_orderinfo.html?" + obj.Id + "\">订单号：" + obj.Ordercode + "<i class=\"rt xq\" href=\"javascript:;\">详情</i></a><div class=\"order_1tc\"><a href=\"javascript:;\"><h3>" + obj.BookerName + "</h3><div class=\"pic\"><img style=\"display: inline;\" alt=\"" + obj.BookerPhone + "\" src=\"Public/home/images/pic.jpg\"></div><div class=\"info\"><div class=\"i-note\"><div class=\"price\">¥" + obj.PreferentialPrice + " <em>医院价：<s>¥" + obj.SumPrice + "</s></em></div><p>体检日期：" + obj.CreateDate + "</p><p>支付方式：在线支付</p></div></div></a></div><div class=\"clear\"></div><div class=\"ord_zt\"><a class=\"xj\" href=\"javascript:;\">小计：￥" + obj.SumPrice + "</a><a class=\"fk\" href=\"\">评价</a></div></div>";
                                     $("#state_3").append(state_3_data);
                                 }
                             })
                         }
                     }
                     else
                     {
                         var d1 = '<div class="tx_box"><img width="60" src="Public/mobile/images/xiaolian.png"><span>暂无相关信息</span></div>';
                         $("#state_0").append(d1);
                         $("#state_2").append(d1);
                         $("#state_3").append(d1);
                     }
                 },
                 // error: function () {
                 //     alert("ajax错误");
                 // }
             });

         })

    </script>

</head>
<body>
<header class="header">
  	<a class="fh_btn" href="javascript:;"></a>
	  <h2>订单列表</h2>
                <a class="hom_icon" href="Index.html"></a>
        </header>
<div style="height:50px"></div>
  
<ul class="ord_tab">
  <li><a class="cur" href="javascript:;">待支付</a></li>
  <li><a href="javascript:;">待体检</a></li>
  <li><a href="javascript:;">体检完成</a></li>
</ul>
    
<!-- 待付款订单 -->
<div id="state_0">
  <!--<div class="tx_box">
    <img width="60" src="Public/mobile/images/xiaolian.png">
    <span>暂无相关信息</span>
  </div>-->
    <!--<div class="tj_cont">
        <a class=" tj_cont_h" href="/Member/my_orderinfo/oid/66554">订单号：D161026150911901<i class="rt xq" href="javascript:;">详情</i></a>
        <div class="order_1tc">
            <a href="javascript:;">
                <h3>福建医科大学附属第一医院体检套餐4（男）</h3>
                <div class="pic"><img style="display: inline;" alt="福建医科大学附属第一医院体检套餐4（男）" src="http://www.viptijian.com/Uploads/images/combos/201507/m_1438054670.jpg"></div>
                <div class="info">
                    <div class="i-note">
                        <div class="price">¥880 <em>医院价：<s>¥925</s></em></div>
                        <p>体检日期：2016-10-29</p>
                        <p>支付方式：在线支付</p>
                    </div>
                </div>
            </a>
        </div>
        <div class="clear"></div>
        <div class="ord_zt">
            <a class="xj" href="javascript:;">小计：￥880.00</a>
            <a class="fk" href="/Order/ok_order/oid/66554">付款</a>
        </div>
    </div>-->

</div>

<!-- 已成功订单 -->
    <div id="state_2" style="display: none;">
        <!--<div class="tx_box">
            <img width="60" src="Public/mobile/images/xiaolian.png">
            <span>暂无相关信息</span>
        </div>-->
    </div>

<!-- 未成功订单 -->
    <div id="state_3" style="display: none;">
        <!--<div class="tx_box">
            <img width="60" src="Public/mobile/images/xiaolian.png">
            <span>暂无相关信息</span>
        </div>-->
    </div>

<script type="text/javascript">
  // 定义一些常量
  var __appId = "";			        // 必填，公众号的唯一标识
  var __timestamp = ""; 	// 必填，生成签名的时间戳
  var __nonceStr = ""; 		// 必填，生成签名的随机串
  var __signature = "";	// 必填，签名，见附录1
  var __public='/Public';
  var __baiduak="FE5a0df097aaacb5b50fe2c75fd2de0f";
  var __refererType__="normal";
  var __indexUrl__="/";//默认的首页地址,即当返回到顶层时的地址
</script>
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<!-- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> -->
<script type="text/javascript" src="Public/mobile/js/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="Public/mobile/js/layer/layer.js"></script> 
<script type="text/javascript" src="Public/mobile/js/layerModel/jquery.layerModel.js"></script> 
<script type="text/javascript" src="Public/mobile/js/jquery.scrollLoading.js"></script>
<script type="text/javascript" src="Public/mobile/js/jquery.cookie.js"></script>
<script type="text/javascript">
    if(__refererType__=="weixin"){
        document.write('<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
    }
</script>
<script type="text/javascript" src="mobile/js/common.js?72"></script>

  <script type="text/javascript" src="Public/mobile/js/member.js"></script>
<script type="text/javascript">
    //解析事sem推广
    var hash=location.hash;
    var reg=new RegExp("sem_(bd|360|sg|jt|sm)_(.*)?");
    if(reg.test(hash)){
        var matchs=reg.exec(hash);
        $.get("/Sem/submit",{channel:matchs[1],keys:matchs[2]},function(){
        });
    }
</script>
<div style="display:none">
    <!--统计代码-->
    <img src="http://c.cnzz.com/wapstat.php?siteid=1253083248&r=http%3A%2F%2Fm.viptijian.com%2FMember%2Findex.html&rnd=1777842931" width="0" height="0"/>    <!--百度统计代码-->
        <img src="http://hm.baidu.com/hm.gif?si=e23220b7e728f5512d935dd4b95e539d&amp;et=0&amp;nv=0&amp;st=4&amp;lt=1476856310&amp;su=http%3A%2F%2Fm.viptijian.com%2FMember%2Findex.html&amp;v=wap-0-0.2&amp;rnd=2054026976" width="0" height="0" />
</div>
<script type="text/javascript">
    // 新的百度统计代码
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "Public/mobile/js/hm.js";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
<!--腾讯统计代码-->
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=58654145" charset="UTF-8"></script>
</body>
</html>

